<?php

$arrContextOptions=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false,
    ),
);  

$data = file_get_contents("https://www.cnblogs.com/taoshihan/p/9780754.html", false, stream_context_create($arrContextOptions));


$preg = "/<div id=\"cnblogs_post_body\" class=\"blogpost-body\"><div class=\"cnblogs_code\">(.+?)MySignature/s";

$c = preg_match_all($preg,$data,$out);

var_dump($c);
var_dump($out);

echo $out[1][0];

// file_put_contents('./dd.txt',$out[1][0]);


